import service from '@/utils/request'

// 盘点单生成
export function InventoryStore(data) {
  return service.request({
    method: 'post',
    url: '/corder/insertCorder.do',
    data
  })
}

// 搜索盘点单
export function SearchInventory(data) {
  return service.request({
    method: 'post',
    url: '/corder/selectByAll.do',
    data
  })
}

// 查看所有盘点单
export function GetInventoryOrder() {
  return service.request({
    method: 'get',
    url: '/corder/findCorderAll',
  })
}
// 查看所有盘点单
export function GetInventoryOrderPage(data) {
  return service.request({
    method: 'post',
    url: '/corder/getCord',
    data
  })
}
// 删除盘点单
export function DelInventoryOrder(data) {
  return service.request({
    method: 'get',
    url: '/corder/deleteCorderAllById?checkId='+data,
  })
}
// 根据ID查看盘点单
export function FindInventoryById(data) {
  return service.request({
    method: 'get',
    url: '/corder/findCorderAllById.do?checkId='+data,
  })
}
// 根据ID修改盘点单
export function UpdateInventory(data) {
  return service.request({
    method: 'post',
    url: '/corder/updateCorderdetails.do',
    data
  })
}

// 提交盘点单
// export function SubmitAllotOrder(data) {
//   return service.request({
//     method: 'get',
//     url: '/Aorder/submitAddBuerStock.do?allotId='+data,
//   })
// }
